25.02.2009, 19:31
Код:
if (strcmp(cmdtext, "/fish", true)==0) { new vehid; vehid = GetVehicleModel(playerid); if(vehid == 446 || vehid == 472 || vehid == 473 || vehid == 493 || vehid == 595 || vehid == 484 || vehid == 430 || vehid == 453 || vehid == 452 || vehid == 454) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"[FISHING]: You caught a fish and replenished some health."); new oldhealth; oldhealth = GetPlayerHealth(playerid); SetPlayerHealth(playerid,oldhealth + 20); } else { SendClientMessage(playerid,COLOR_RED,"[FISHING]: Your not in water! Fish don't come out of the concrete!"); } return 1; }
Код:
C:\PROGRA~1\ROCKST~1\GAMEMO~1\paradise.pwn(1679) : warning 202: number of arguments does not match definition