if(strcmp(cmd, "/enter", true) == 0) if(IsPlayerInRangeOfPoint(playerid, 6, 21,223.1871, 97.6708, 1003.9141))// // put your own cords here { SetPlayerInterior(playerid, 10);//here aswell, or Set interror here TogglePlayerControllable(playerid, 0); SetTimer("unfreeze" , false); return 1; } if(GetPVarInt(playerid, "RegistrationStep") >= 5)
C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14513) : error 017: undefined symbol "cmd" C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14514) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14519) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14523) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
cmd = strtok(cmdtext, idx);
Use this.
Put this code under OnPlayerCommandText Код:
cmd = strtok(cmdtext, idx); |
I put mine at the top of the function, Take a look at this screen
Oh yeah I forgot to tell you add "new cmd[256];" you can see on the picture how I have done it. |
C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14515) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14520) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14524) : warning 217: loose indentation C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14546) : error 021: symbol already defined: "cmd" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14515) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14520) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14524) : warning 217: loose indentation C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14546) : error 021: symbol already defined: "cmd" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14513) : error 017: undefined symbol "cmd" C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14519) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14523) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Код:
C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14513) : error 017: undefined symbol "cmd" C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14519) : warning 202: number of arguments does not match definition C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14523) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |
new cmd[256];
C:\Users\dad\Desktop\Callum's - DON'T DELETE PLEASE!\PR-RP\gamemodes\PR-RP.pwn(14523) : warning 217: loose indentation |