Hey Fische,
wo sitzt der Fehler:
#include <a_samp>
new posX[MAX_PLAYERS];
new posY[MAX_PLAYERS];
new posZ[MAX_PLAYERS];
#define COLOR_ORANGE 0xFF9900AA
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/sp",true)==0)
{
GetPlayerPos(playerid,Float:posX,Float:posY,Float:posZ); // error 035: argument type mismatch (argument 2)
SendClientMessage(playerid,COLOR_ORANGE,"Your position was saved successfully!");
return 1;
}
if(strcmp(cmdtext,"/lp",true)==0)
{
SetPlayerPos(playerid,posX,posY,posZ); // error 035: argument type mismatch (argument 2)
SendClientMessage(playerid,COLOR_ORANGE,"Your position was loaded successfully!");
return 1;
}
return 0;
}
Gruß Skyfreak