20.04.2012, 13:04
Guys here is the Script and im getting an error on Line 44.
You can see Here:
Error:
the Bold one is the line starting from 30 !! If anyone can Help me i will give +1 !!
Thanks
You can see Here:
Код:
#include <a_samp> public OnPlayerCommandText( playerid, cmdtext[ ] ) { if( strcmp( cmdtext, "/work", true ) == 0 ) { if( GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 519 && GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 592 && GetVehicleModel( GetPlayerVehicleID( playerid ) ) != 577 ) return SendClientMessage( playerid, 0xFFFFFFFF, "Yor Need to be In A Vehicle to Do work!" ); SetPlayerCheckpoint( playerid, 1644.4673, -2416.9844, 13.5547, 5.0 ); return 1; } if( strcmp( cmdtext, "/stopwork", true ) == 0 ) { if(GetPlayerMoney(playerid) >= 1000) { DisablePlayerCheckpoint( playerid ); SendClientMessage(playerid,0xFFFFFFFFF,"You Have Canceled the Work!"); } else { SendClientMessage(playerid,0xFFFFFFFFF,"You Need $1000 to Cancel the Work!"); } return 1; } if( strcmp( cmdtext, "/beacon , true ) == 0 ) { if(IsPlayerInVehicle(playerid, 0)) { SendClientMessage(playerid,0xFFFFFFFFF,"You Need to be in vehicle !"); } else { SetPlayerColor(playerid, 0xFFFF00FF); } return 1; } return 0; } public OnPlayerEnterCheckpoint( playerid ) { GivePlayerMoney( playerid, 10000 ); DisablePlayerCheckpoint( playerid ); return 1; }
Код:
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pwn(30) : error 037: invalid string (possibly non-terminated string) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Thanks