15.07.2010, 01:49
Hello there, well, I started scripting a safezone, mapped everything etc.
But now, i am getting the following errors, and yes, i'm kind of new to strings and to pawn, more specificly.
Here is the code:
I am getting the following errors/warnings:
For the class id's, here are they:
And for if(PlayerToPoint) i think that I included it by doing this:
Thanks in advance!
Signed, Vince.
But now, i am getting the following errors, and yes, i'm kind of new to strings and to pawn, more specificly.
Here is the code:
pawn Код:
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(50.0,playerid,-1233.5388,-2331.3735,18.2380))
{
new string[128];
SetPlayerPos(playerid,2263.7610,-2323.9080,323.6542);
SendClientMessageToAll(COLOR_WHITE, "%s has entered the safezone!",playerid);
return 1;
}
else if(classid == 0)
{
SendClientMessage(playerid,COLOR_RED, "-Access Denied-");
return 1;
}
else
{
SendClientMessage(playerid,COLOR_LIGHTBLUE, "You are not at the safezone! Be careful!");
return 1;
}
}
I am getting the following errors/warnings:
Код:
C:\Users\vince\Desktop\Project Zombie\gamemodes\pzombie.pwn(302) : error 004: function "PlayerToPoint" is not implemented C:\Users\vince\Desktop\Project Zombie\gamemodes\pzombie.pwn(306) : warning 202: number of arguments does not match definition C:\Users\vince\Desktop\Project Zombie\gamemodes\pzombie.pwn(304) : warning 204: symbol is assigned a value that is never used: "string" C:\Users\vince\Desktop\Project Zombie\gamemodes\pzombie.pwn(304 -- 309) : error 017: undefined symbol "classid"
pawn Код:
if(classid == 0)
{
GameTextForPlayer(playerid, "[ Zombie ]",500,3);
}
else if(classid == 1)
{
GameTextForPlayer(playerid, "[ Shine ]",500,3);
}
else if(classid == 2)
{
GameTextForPlayer(playerid, "[ Turok ]",500,3);
}
else if(classid == 3)
{
GameTextForPlayer(playerid, "[ Hankron ]",500,3);
}
else if(classid == 4)
{
GameTextForPlayer(playerid, "[ Chesty ]",500,3);
}
else if(classid == 5)
{
GameTextForPlayer(playerid, "[ Crazy Tom ]",500,3);
}
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
Thanks in advance!
Signed, Vince.