public OnPlayerText(playerid, text[]) { if(text[0] == '&' { new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"Pilot Chat: %s: %s",string,text[1]); SendClientMessageToAll(green,string); return 1; } return 1; }
if(text[0] == '&' {
C:\Documents and Settings\Administratцr\Skrivbord\Server\gamemodes\nwa.pwn(593) : error 029: invalid expression, assumed zero Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Originally Posted by FUNExtreme
if(text[0] == '&') {
|
new vehicleid;
for (new i = 0; i < MAX_PLAYERS; i++)
{
vehicleid = GetPlayerVehicleID(i);
if(GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 469){
new string[128]; GetPlayerName(playerid,string,sizeof(string));
format(string,sizeof(string),"Pilot Chat: %s: %s",string,text[1]); SendClientMessageToAll(green,string);
}
return 1;
|| GetVehicleModel(vehicleid) == Model ID || GetVehicleModel(vehicleid) == Model ID
7public OnPlayerText(playerid, text[]) 8{ 9 if(text[0] == '&') { 10 new pName[128]; 11 new string[128]; 12 GetPlayerName(playerid,pName,sizeof(string)); 13 vehicleid = GetPlayerVehicleID(playerid); 14 if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488){ 15 format(string,sizeof(string),"Pilot Chat: %s: %s",pName,text[1]); 16 SendClientMessageToAll(green,string); 17 return 1; 18 } else { 19 SendClientMessage(playerid,green,"You must be in a plane or heli to use pilot chat"); 20 return 1; 21 } 22 return 1; 23}
C:\Documents and Settings\Administratцr\Skrivbord\Server\filterscripts\pilot.pwn(13) : error 075: input line too long (after substitutions) C:\Documents and Settings\Administratцr\Skrivbord\Server\filterscripts\pilot.pwn(14) : error 017: undefined symbol "ve" C:\Documents and Settings\Administratцr\Skrivbord\Server\filterscripts\pilot.pwn(15) : error 017: undefined symbol "hicleid" C:\Documents and Settings\Administratцr\Skrivbord\Server\filterscripts\pilot.pwn(15) : warning 217: loose indentation C:\Documents and Settings\Administratцr\Skrivbord\Server\filterscripts\pilot.pwn(15) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administratцr\Skrivbord\Server\filterscripts\pilot.pwn(15) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administratцr\Skrivbord\Server\filterscripts\pilot.pwn(15) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488){
Originally Posted by bajskorv123
Cant you just, Please , make it done for me?
Heres the, whatever you know. Код:
if(GetVehicleModel(vehicleid) == 417 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 447 || GetVehicleModel(vehicleid) == 460 || GetVehicleModel(vehicleid) == 464 || GetVehicleModel(vehicleid) == 465 || GetVehicleModel(vehicleid) == 469 || GetVehicleModel(vehicleid) == 476 || GetVehicleModel(vehicleid) == 487 || GetVehicleModel(vehicleid) == 488 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 501 || GetVehicleModel(vehicleid) == 511 || GetVehicleModel(vehicleid) == 512 || GetVehicleModel(vehicleid) == 513 || GetVehicleModel(vehicleid) == 519 || GetVehicleModel(vehicleid) == 520 || GetVehicleModel(vehicleid) == 548 || GetVehicleModel(vehicleid) == 553 || GetVehicleModel(vehicleid) == 563 || GetVehicleModel(vehicleid) == 577 || GetVehicleModel(vehicleid) == 592 || GetVehicleModel(vehicleid) == 593 || GetVehicleModel(vehicleid) == 488){ |