08.12.2009, 13:22
Quote:
Originally Posted by <__Ǝthan__>
Yes, and that's wrong, this is how it is:
Код:
north (0) | (90)west- -east (270) | south (180) |
Код:
north (0) | (270)west- -east (90) | south (180)
Originally Posted by <__Ǝthan__>
Yes, and that's wrong, this is how it is:
Код:
north (0) | (90)west- -east (270) | south (180) |
north (0) | (270)west- -east (90) | south (180)
Originally Posted by radi
wrong
Код:
north (0) | (270)west- -east (90) | south (180) |
Originally Posted by 0rb
Quote:
|
stock GetPlayerPosInt(playerid, &Float:x, &Float:y, &Float:z, &interior)
{
GetPlayerPos(playerid, x, y, z);
interior = GetPlayerInterior(playerid);
}
stock strtok(const source[], &index, dest[], separator = ' ') { new i = 0; while((dest[i] = source[index]))//while we've not reached the end of the string { if(source[index] != separator)//if the separator isn't reached yet { index++;//increment the variables i++; } else//on est rendu au sйparateur { index++;//we go to the next character (skip the separator) dest[i] = EOS;//in cas of troubles break; } } }
new input[] = "Hello, this is a testing!"; new begin = 5, destination[16]; strtok(input, begin, destination); print(destination);
new input[] = "Hello, this is a testing!"; new begin = 5, destination[16]; destination = strtok(input, begin); print(destination);
dest[i] = EOS;
stock strtok(const source[], dest[], separator = ' ', start = -1)
{
if (!source[0])
{
return 0;
}
new
i,
ch;
static
j;
if (start == 0)
{
j = 0;
}
else if (start > 0)
{
j = start;
}
while ((ch = source[j++]))
{
if (ch != separator)
{
dest[i] = ch;
i++;
}
else
{
while (source[++j] == separator) {}
break;
}
}
dest[i] = '\0';
return i;
}
Originally Posted by .:: ZeX ::.
Thank you,problem fixed.
|
stock DisconnectNPC(npcname[]) {
new
n[MAX_PLAYER_NAME],x=0;
while(x!=GetMaxPlayers()) {
GetPlayerName(x,n,sizeof n);
if(!strcmp(n,npcname,true)) break;
x++;
}
if(x==GetMaxPlayers())return INVALID_PLAYER_ID;
Kick(x);
return 1;
}
Originally Posted by Luka™
SetPlayerHealth doesn't work with float in 0.3, but with integer
|
Originally Posted by 0rb
Quote:
|
Originally Posted by .:: ZeX ::.
pawn Код:
|
Originally Posted by Luka™
Quote:
|
Originally Posted by a_players.inc
native SetPlayerHealth(playerid, Float:health);
|
stock SetPlayerPosAndAngle(playerid,Float:x,Float:y,Float:z,Float:ang)
{
SetPlayerPos(playerid,x,y,z);
SetPlayerFacingAngle(playerid,ang);
}
Originally Posted by KyleSmith
I made this one so you dont have to do
SetPlayerPos As well as SetPlayerFacingAngle pawn Код:
|
Originally Posted by KyleSmith
pawn Код:
|
stock GetPlayerID(playerid) return playerid;