#1

Код:
   157    - public OnPlayerCommandText(playerid, cmdtext[])
{

	   //==============================/v help=============================
	   
	   if (strcmp("/vhelp", cmd, true, 10) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			SendClientMessage(playerid, ,"____________Ulric Car Ownership___________________________";
			SendClientMessage(playerid, ,"*** CAR HELP *** type the command for more help");
			SendClientMessage(playerid, ,"*** CAR *** /vpark /vbuy /vcall /vlock");
			SendClientMessage(playerid, ,"*** CAR *** /vunlock /vplate /vsell /mycar");
            SendClientMessage(playerid, ,"*** CAR *** /openbonnet /closebonnet /buyalarm /alarmon");
            SendClientMessage(playerid, ,"*** CAR *** /alarmoff /opendoor /closedoor /lighton /lightoff")
		}
		return 1;
174-	}
Код:
C:\Users\Vlad\Desktop\carowner.pwn(133) : warning 235: public function lacks forward declaration (symbol "OnPlayerUpdate")
C:\Users\Vlad\Desktop\carowner.pwn(162) : error 017: undefined symbol "cmd"
C:\Users\Vlad\Desktop\carowner.pwn(166) : error 029: invalid expression, assumed zero
C:\Users\Vlad\Desktop\carowner.pwn(166) : warning 215: expression has no effect
C:\Users\Vlad\Desktop\carowner.pwn(167) : error 029: invalid expression, assumed zero
C:\Users\Vlad\Desktop\carowner.pwn(167) : warning 215: expression has no effect
C:\Users\Vlad\Desktop\carowner.pwn(167) : error 001: expected token: ";", but found ")"
C:\Users\Vlad\Desktop\carowner.pwn(167) : error 029: invalid expression, assumed zero
C:\Users\Vlad\Desktop\carowner.pwn(167) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
i really dont know what to do THx
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/vhelp", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, 0xFFFFFFFF  ,"____________Ulric Car Ownership___________________________";
        SendClientMessage(playerid, 0xFFFFFFFF  ,"*** CAR HELP *** type the command for more help");
        SendClientMessage(playerid, 0xFFFFFFFF  ,"*** CAR *** /vpark /vbuy /vcall /vlock");
        SendClientMessage(playerid, 0xFFFFFFFF  ,"*** CAR *** /vunlock /vplate /vsell /mycar");
        SendClientMessage(playerid, 0xFFFFFFFF  ,"*** CAR *** /openbonnet /closebonnet /buyalarm /alarmon");
        SendClientMessage(playerid, 0xFFFFFFFF  ,"*** CAR *** /alarmoff /opendoor /closedoor /lighton /lightoff")
        return 1;
    }
    return 0;
}
For the first warning, make sure you have

pawn Код:
#include <a_samp>
at the top of your script and the latest includes in your sa-mp server directories
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)