10.08.2010, 04:50
(
Последний раз редактировалось iRana; 10.08.2010 в 05:06.
)
I have error undifined params but params is already two time used but its giving error in new line here's the code .
Код:
if(strcmp(cmd, "/eventproperties", true) == 0) { new desiredhp, desiredarmour, desiredwep1, desiredwep2, desiredwep3, desiredwep4, desiredwep5; if( sscanf(params, "eve", desiredhp, desiredarmour, desiredwep1, desiredwep2, desiredwep3, desiredwep4, desiredwep5)) { if(PlayerInfo[playerid][pAdmin] >= 3) { SendClientMessage( playerid, COLOR_GREY, "SYNTAX - /eventproperties [health] [armour] [weapon1] [weapon2] [weapon3] [weapon4] [weapon5]" ); } } else { if(PlayerInfo[playerid][pAdmin] >= 3) { EventHP = desiredhp; EventArmour = desiredarmour; EventWeapon1 = desiredwep1; EventWeapon2 = desiredwep2; EventWeapon3 = desiredwep3; EventWeapon4 = desiredwep4; EventWeapon5 = desiredwep5; GetPlayerPos( playerid, EventX, EventY, EventZ); EventWorld = GetPlayerVirtualWorld( playerid ); EventInt = GetPlayerInterior( playerid ); SendClientMessage( playerid, COLOR_GREY, "You have set the properties. Type /startevent to start the event, or use the same command to change the properties." ); } } return 1; }