18.07.2011, 20:50
I get this error:
and this is code:
Plss help :S
pawn Код:
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1157) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1158) : error 001: expected token: ")", but found "{"
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1162) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1163) : error 001: expected token: ")", but found "{"
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1174) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1175) : error 001: expected token: ")", but found "{"
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1176) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\STUNTS~1\GAMEMO~1\stunt.pwn(1177) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
pawn Код:
CMD:minigun(playerid, params[]) //1153 line
{ //1154 line
new rand = random(sizeof(StrojnicaEvent)); //1155 line
if(GetPVarInt(playerid, "Event", 1) //1157
{ //1158
SendClientMessage(playerid, -1, ""#COL_GREY"Event is started!"); //1159
return 1; //1160
} //1161
if(GetPVarInt(playerid, "Strojnica", 0) //1162
{ //1163
SetPlayerPos(playerid, StrojnicaEvent[rand][0], StrojnicaEvent[rand][1], StrojnicaEvent[rand][2]); //1164
ResetPlayerWeapons(playerid); //1165
GivePlayerWeapon(playerid, 38, 5000); //1166
SetPVarInt(playerid, "Strojnica", 1); //1167
TogglePlayerControllable(playerid,0); //1168
SendClientMessage(playerid, -1, ""#COL_GREY"Welcome to Event!"); //1169
SendClientMessageToAll(-1, ""#COL_GREY"Event start in 60 seconds!"); //1170
SetTimer("Event_S",60000,1); //1171
return 1; //1172
} //1173
if(GetPVarInt(playerid, "Strojnica", 1) //1174
{ //1175
if(GetPVarInt(playerid, "Event", 0) //1176
{ //1177
SetPlayerPos(playerid, StrojnicaEvent[rand][0], StrojnicaEvent[rand][1], StrojnicaEvent[rand][2]); //1178
ResetPlayerWeapons(playerid); //1179
TogglePlayerControllable(playerid,0); //1180
GivePlayerWeapon(playerid, 38, 5000); //1181
SendClientMessage(playerid, -1, ""#COL_GREY"Welcome to event!"); //1182
return 1; //1183
} //1184
} //1185
return 1; //1186
} //1187