PDA

View Full Version : Commands


NathNathii
07/03/2013, 02:59 PM
//FIXED

L.Hudson
07/03/2013, 03:02 PM
would help a lot if you showed what kind of errors and the lines of each error...

NathNathii
07/03/2013, 03:05 PM
Forgot that once again, sorry.

C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(8) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(9) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(10) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(11) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(12) : error 017: undefined symbol "StatsMsg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(18) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(19) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(20) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(21) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(22) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(23) : error 017: undefined symbol "StatsMsg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(29) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(30) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(31) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(32) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(33) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(34) : error 017: undefined symbol "StatsMsg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(40) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(41) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(42) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(43) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(44) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(45) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(46) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(47) : error 017: undefined symbol "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(48) : error 017: undefined symbol "Msg"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

L.Hudson
07/03/2013, 03:09 PM
try this..

CMD:convoyc(playerid, params[])
}
new Msg[64];
format(Msg, 2000, "%s /convoy\n", Msg);
format(Msg, 2000, "%s /convoycancel\n", Msg);
format(Msg, 2000, "%s /convoykick\n", Msg);
format(Msg, 2000, "%s /convoyleave\n", Msg);
format(Msg, 2000, "%s /convoymembers\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Convoy Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:housec(playerid, params[])
}
new Msg[64];
format(Msg, 2000, "%s /buyhouse\n", Msg);
format(Msg, 2000, "%s. /housemenu\n", Msg);
format(Msg, 2000, "%s /gohome\n", Msg);
format(Msg, 2000, "%s /getcar\n", Msg);
format(Msg, 2000, "%s /park\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "House Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:cmds(playerid, params[])
}
new Msg[64];
format(Msg, 2000, "%s /assistance\n", Msg);
format(Msg, 2000, "%s /bank\n", Msg);
format(Msg, 2000, "%s /changepassword\n", Msg);
format(Msg, 2000, "%s /givecash\n", Msg);
format(Msg, 2000, "%s /flip", Msg);
format(Msg, 2000, "%s /pm\n", Msg);
format(Msg, 2000, "%s /rescue\n", Msg);
format(Msg, 2000, "%s /reclass\n", Msg);
format(Msg, 2000, "%s /report\n", Msg);
format(Msg, 2000, "%s /rules\n", Msg);
format(Msg, 2000, "%s /work\n", Msg);
format(Msg, 2000, "%s /stats\n", Msg);
format(Msg, 2000, "%s /detach\n", Msg);
format(Msg, 2000, "%s /convoyc\n", Msg);
format(Msg, 2000, "%s /housec\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

Patrick
07/03/2013, 03:10 PM
26 Errors = Could be Missing Brackets
or
probably you did not make a variable Msg something like this

//parameters: new Msg[ string value here ];
new Msg[256];

L.Hudson
07/03/2013, 03:11 PM
26 Errors = Missing Brackets
or probably you did not make a variable Msg
something like this


//parameters
//new Msg[ value here ];
new Msg[256];


not always it may just count 26 errors cuz he forgot 26 defines...

NathNathii
07/03/2013, 03:12 PM
C:\Users\Documents\GT Testing\pawno\include\Common.inc(140) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Common.inc(166) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Common.inc(271) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Common.inc(503) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Housing.inc(45) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Housing.inc(133) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Housing.inc(168) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Business.inc(121) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Business.inc(155) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Business.inc(179) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\FileOperations.inc(855) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Speedometer.inc(41) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Speedometer.inc(240) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsTrucking.inc(241) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsBus.inc(74) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsPolice.inc(41) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsPolice.inc(302) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsMafia.inc(199) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsAssistance.inc(36) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsCourier.inc(115) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Convoys.inc(27) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Convoys.inc(61) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(956) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1167) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1400) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1528) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1580) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1670) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1817) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1872) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2107) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2525) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2566) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2649) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2880) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(6) : error 029: invalid expression, assumed zero
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(6 -- 7) : warning 215: expression has no effect
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(7) : error 001: expected token: ";", but found "new"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(8) : error 021: symbol already defined: "format"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(14) : error 010: invalid function or declaration
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(18) : error 029: invalid expression, assumed zero
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(18 -- 19) : warning 215: expression has no effect
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(19) : error 001: expected token: ";", but found "new"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(19) : error 021: symbol already defined: "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(19) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.

Patrick
07/03/2013, 03:13 PM
not always it may just count 26 errors cuz he forgot 26 defines...

L.Hudson. lol! i did said

OR and its bold!. read properly bro.

cuz most Missing Brackets could give random error! so i said OR

EDIT

C:\Users\Documents\GT Testing\pawno\include\Common.inc(140) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Common.inc(166) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Common.inc(271) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Common.inc(503) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Housing.inc(45) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Housing.inc(133) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Housing.inc(168) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Business.inc(121) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Business.inc(155) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Business.inc(179) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\FileOperations.inc(855) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Speedometer.inc(41) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Speedometer.inc(240) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsTrucking.inc(241) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsBus.inc(74) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsPolice.inc(41) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsPolice.inc(302) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsMafia.inc(199) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsAssistance.inc(36) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\MissionsCourier.inc(115) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Convoys.inc(27) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Convoys.inc(61) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(956) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1167) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1400) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1528) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1580) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1670) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1817) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(1872) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2107) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2525) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2566) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2649) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\Dialogs.inc(2880) : warning 219: local variable "Msg" shadows a variable at a preceding level
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(6) : error 029: invalid expression, assumed zero
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(6 -- 7) : warning 215: expression has no effect
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(7) : error 001: expected token: ";", but found "new"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(8) : error 021: symbol already defined: "format"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(14) : error 010: invalid function or declaration
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(18) : error 029: invalid expression, assumed zero
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(18 -- 19) : warning 215: expression has no effect
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(19) : error 001: expected token: ";", but found "new"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(19) : error 021: symbol already defined: "Msg"
C:\Users\Documents\GT Testing\pawno\include\PlayerCommands.inc(19) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.


Remove that define because its already defined.! can you show us your code please?

L.Hudson
07/03/2013, 03:14 PM
alright chill :P I just didn't read the whole text

NathNathii
07/03/2013, 03:15 PM
CMD:convoyc(playerid, params[])
}
new Msg[256];
format(Msg, 2000, "%s /convoy\n", Msg);
format(Msg, 2000, "%s /convoycancel\n", Msg);
format(Msg, 2000, "%s /convoykick\n", Msg);
format(Msg, 2000, "%s /convoyleave\n", Msg);
format(Msg, 2000, "%s /convoymembers\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Convoy Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:housec(playerid, params[])
}
new Msg[256];
format(Msg, 2000, "%s /buyhouse\n", Msg);
format(Msg, 2000, "%s. /housemenu\n", Msg);
format(Msg, 2000, "%s /gohome\n", Msg);
format(Msg, 2000, "%s /getcar\n", Msg);
format(Msg, 2000, "%s /park\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "House Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:cmds(playerid, params[])
}
new Msg[256];
format(Msg, 2000, "%s /assistance\n", Msg);
format(Msg, 2000, "%s /bank\n", Msg);
format(Msg, 2000, "%s /changepassword\n", Msg);
format(Msg, 2000, "%s /givecash\n", Msg);
format(Msg, 2000, "%s /flip", Msg);
format(Msg, 2000, "%s /pm\n", Msg);
format(Msg, 2000, "%s /rescue\n", Msg);
format(Msg, 2000, "%s /reclass\n", Msg);
format(Msg, 2000, "%s /report\n", Msg);
format(Msg, 2000, "%s /rules\n", Msg);
format(Msg, 2000, "%s /work\n", Msg);
format(Msg, 2000, "%s /stats\n", Msg);
format(Msg, 2000, "%s /detach\n", Msg);
format(Msg, 2000, "%s /convoyc\n", Msg);
format(Msg, 2000, "%s /housec\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

Patrick
07/03/2013, 03:16 PM
Aight i found the error! you put } return 1; } it should be { return 1; }

Here's the correct code:


CMD:convoyc(playerid, params[])
{
format(Msg, 2000, "%s /convoy\n", Msg);
format(Msg, 2000, "%s /convoycancel\n", Msg);
format(Msg, 2000, "%s /convoykick\n", Msg);
format(Msg, 2000, "%s /convoyleave\n", Msg);
format(Msg, 2000, "%s /convoymembers\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Convoy Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:housec(playerid, params[])
{
format(Msg, 2000, "%s /buyhouse\n", Msg);
format(Msg, 2000, "%s. /housemenu\n", Msg);
format(Msg, 2000, "%s /gohome\n", Msg);
format(Msg, 2000, "%s /getcar\n", Msg);
format(Msg, 2000, "%s /park\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "House Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:cmds(playerid, params[])
{
format(Msg, 2000, "%s /assistance\n", Msg);
format(Msg, 2000, "%s /bank\n", Msg);
format(Msg, 2000, "%s /changepassword\n", Msg);
format(Msg, 2000, "%s /givecash\n", Msg);
format(Msg, 2000, "%s /flip", Msg);
format(Msg, 2000, "%s /pm\n", Msg);
format(Msg, 2000, "%s /rescue\n", Msg);
format(Msg, 2000, "%s /reclass\n", Msg);
format(Msg, 2000, "%s /report\n", Msg);
format(Msg, 2000, "%s /rules\n", Msg);
format(Msg, 2000, "%s /work\n", Msg);
format(Msg, 2000, "%s /stats\n", Msg);
format(Msg, 2000, "%s /detach\n", Msg);
format(Msg, 2000, "%s /convoyc\n", Msg);
format(Msg, 2000, "%s /housec\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

NathNathii
07/03/2013, 03:19 PM
Still the same errors >_<

Patrick
07/03/2013, 03:23 PM
can you post all edited command that you made? that gave you errors?

NOTE: you should compile everytime you add something new on your script so you would know. where the error.

NathNathii
07/03/2013, 03:24 PM
The only commands that gives me errors is these 3, i fixed all warnings now.

Denying
07/03/2013, 03:29 PM
What are the errors?

NathNathii
07/03/2013, 03:31 PM
Check page 1 Denying.

L.Hudson
07/03/2013, 03:37 PM
CMD:convoyc(playerid, params[])
{
new Msg[64];
format(Msg, 2000, "%s /convoy\n", Msg);
format(Msg, 2000, "%s /convoycancel\n", Msg);
format(Msg, 2000, "%s /convoykick\n", Msg);
format(Msg, 2000, "%s /convoyleave\n", Msg);
format(Msg, 2000, "%s /convoymembers\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Convoy Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:housec(playerid, params[])
{
new Msg[64];
format(Msg, 2000, "%s /buyhouse\n", Msg);
format(Msg, 2000, "%s. /housemenu\n", Msg);
format(Msg, 2000, "%s /gohome\n", Msg);
format(Msg, 2000, "%s /getcar\n", Msg);
format(Msg, 2000, "%s /park\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "House Related Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

CMD:cmds(playerid, params[])
{
new Msg[64];
format(Msg, 2000, "%s /assistance\n", Msg);
format(Msg, 2000, "%s /bank\n", Msg);
format(Msg, 2000, "%s /changepassword\n", Msg);
format(Msg, 2000, "%s /givecash\n", Msg);
format(Msg, 2000, "%s /flip", Msg);
format(Msg, 2000, "%s /pm\n", Msg);
format(Msg, 2000, "%s /rescue\n", Msg);
format(Msg, 2000, "%s /reclass\n", Msg);
format(Msg, 2000, "%s /report\n", Msg);
format(Msg, 2000, "%s /rules\n", Msg);
format(Msg, 2000, "%s /work\n", Msg);
format(Msg, 2000, "%s /stats\n", Msg);
format(Msg, 2000, "%s /detach\n", Msg);
format(Msg, 2000, "%s /convoyc\n", Msg);
format(Msg, 2000, "%s /housec\n", Msg);
ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Commands", Msg, "Ok", TXT_DialogButtonCancel);
return 1;
}

this should work...

NathNathii
07/03/2013, 03:47 PM
No errors but it says
SERVER: Unknown Command

[EDIT] Works