Kann mir jemand im folgenden Scripthelfen:
Code
#include <a_samp>
#pragma tabsize 0
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Checkpoint by gtaturke54");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print("\n----------------------------------");
print(" Checkpoint by gtaturke54");
print("----------------------------------\n");
}
#endif
public OnGameModeInit()
{
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1568.5896, -1691.8546, 5.8906);
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
SetPlayerPos(playerid, 1541.9686, -1675.9211, 13.5536);
DisablePlayerCheckpoint(playerid);
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
Alles anzeigen
Es kommt eine Warnung bei compilen:
warning 202: number of arguments does not match definition
Im Spiel sieht man den Checkpoint auch noch nicht mal.