ZCMD isn't working :/ ?
#1

That is my script and here is the include

Quote:

#include <a_samp>

#include <zcmd>

#include <sscanf2>

new Gate;

new Pickup;


#if defined FILTERSCRIPT


public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Test by Fanfo");
print("--------------------------------------\n");
return 1;
}

The goto command

Quote:

if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SetPlayerHealth (playerid, 0);
SendClientMessage (playerid, 0x00000000, "You Have Commited Suicide!");
return 1;
}


CMD:goto(playerid, params[])
{
new targetid;
if(sscanf(params,"d", targetid) return SendClientMessage(playerid, 0xFFFFFFAA, "Usage:/goto [PLAYERID]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, 0xFFFFFFAA,"Player Is Not Connected");
new Float,Float:y,Float:z;
GetPlayerPos(targetid, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
SendClientMessage(playerid, 0xFFFFFFAA, "You have been successfully Teleported!");



return 1;
}

And the errors

Quote:

C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(349) : warning 217: loose indentation
C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : error 029: invalid expression, assumed zero
C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : error 017: undefined symbol "cmd_goto"
C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : error 029: invalid expression, assumed zero
C:\Users\zero\Desktop\SAMP Server\gamemodes\Test.pwn(357) : fatal error 107: too many error messages on one line

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


4 Errors.

I am noob at coding so help me please
Reply


Messages In This Thread
ZCMD isn't working :/ ? - by Le3aT - 01.12.2013, 07:04
Re: ZCMD isn't working :/ ? - by Le3aT - 01.12.2013, 07:20
Re: ZCMD isn't working :/ ? - by Tomix - 01.12.2013, 07:26
Re: ZCMD isn't working :/ ? - by newbie scripter - 01.12.2013, 07:32
Re: ZCMD isn't working :/ ? - by Le3aT - 01.12.2013, 07:42
Re: ZCMD isn't working :/ ? - by Avi Raj - 01.12.2013, 07:44
Re: ZCMD isn't working :/ ? - by Tomix - 01.12.2013, 07:48
Re: ZCMD isn't working :/ ? - by iZN - 01.12.2013, 08:34
Re: ZCMD isn't working :/ ? - by Threshold - 01.12.2013, 10:15

Forum Jump:


Users browsing this thread: 1 Guest(s)