Raised This Month: $12 Target: $400
 3% 

GTA SA:MP Scripting Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NealPeteros
New Member
Join Date: Dec 2015
Old 12-28-2015 , 07:32   GTA SA:MP Scripting Help
Reply With Quote #1

Errors
Quote:
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(370) : error 001: expected token: ":", but found "}"
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(370) : error 029: invalid expression, assumed zero
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(371) : warning 215: expression has no effect
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(373) : warning 217: loose indentation
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(375) : warning 225: unreachable code
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(376) : error 014: invalid statement; not in switch
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(376 -- 377) : warning 215: expression has no effect
C:\Users\4neals\Desktop\SAMP\Main\gamemodes\n ew.pwn(377) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Code
Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_GENDERSEL)
    {
        if(response) // If they clicked 'Yes' or pressed enter
        {
            switch(listitem)
            {
                case 0
                }
                 SetPlayerSkin(playerid, 147);
                  SetPlayerPos(playerid, 1743.0903,-1860.7156,13.5784);
                {
                return 1;
                {
                case 1
                SetPlayerSkin(playerid, 141);
                }
            }
        }
        else // Pressed ESC or clicked cancel
        {
            Kick(playerid);
        }
        return 1; // We handled a dialog, so return 1. Just like OnPlayerCommandText.
    }

    return 0; // You MUST return 0 here! Just like OnPlayerCommandText.
}
Please correct my code. I would be pleased to be helped
NealPeteros is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode