24.01.2010, 12:17
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { dcmd(takeoff, 7, cmdtext); return 0; } dcmd_takeoff(playerid, params[]) {
Код:
switch(GetVehicleModel(GetPlayerVehicleID(playerid))) { case 592, 577, 511, 512, 593, 520, 553, 476, 519, 460, 513: { new msg[128], name[24]; GetPlayerName(playerid, name, sizeof (name)); format(msg,sizeof(msg), "%s taking off", name); SendClientMessageToAll(0xEEEE00FF, msg); } default: SendClientMessage(playerid,0xEEEE00FF, "You are not in a plane, you cannot take off"); } }
Код:
\Documents and Settings\salim\My Documents\PAWN\gamemodes\APH.pwn(157) : error 017: undefined symbol "dcmd" E:\Documents and Settings\salim\My Documents\PAWN\gamemodes\APH.pwn(543) : warning 203: symbol is never used: "dcmd_takeoff" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.