Also bin noch ein totaler Noob in sachen skripten.
Jetzt wollt ich fragen was ich hier falsch gemacht habe:
#include <a_samp>
new pickup1;
new pickup2;
new pickup3;
new teleportpickup;
public OnFilterScriptInit()
{
pickup1 = CreatePickup(1275,286.2818,-1511.8273,24.9219,70.9100); // Koordinaten erfunden!
pickup2 = CreatePickup(,1335.8826,-1029.8291,27.7624,90.6404); // Koordinaten erfunden!
pickup3 = CreatePickup(1240,3,3333.00,3333.00,33.00); // Koordinaten erfunden!
teleportpickup = CreatePickup(1239,3,213.31,453.01,833.42); // Koordinaten erfunden!
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup1)
{
GameTextForPlayer(playerid,"Du stehst in Pickup1",5000,6);
}
if(pickupid == pickup2)
{
GameTextForPlayer(playerid,"Du stehst in Pickup2",5000,6);
}
if(pickupid == pickup3)
{
GameTextForPlayer(playerid,"Du stehst in Pickup3",5000,6);
}
if(pickupid == teleportpickup)
{
GameTextForPlayer(playerid,"Du wurdest durch den Pickup teleportiert!",5000,6);
SetPlayerPos(playerid,1111.00,2222.00,33.00);
}
return 1;
}
Folgende Errors
C:\Users\Florian\Desktop\pickup.pwn(11) : warning 213: tag mismatch
C:\Users\Florian\Desktop\pickup.pwn(12) : error 029: invalid expression, assumed zero
C:\Users\Florian\Desktop\pickup.pwn(12) : warning 215: expression has no effect
C:\Users\Florian\Desktop\pickup.pwn(12) : warning 215: expression has no effect
C:\Users\Florian\Desktop\pickup.pwn(12) : warning 215: expression has no effect
C:\Users\Florian\Desktop\pickup.pwn(12) : warning 215: expression has no effect
C:\Users\Florian\Desktop\pickup.pwn(12) : error 001: expected token: ";", but found ")"
C:\Users\Florian\Desktop\pickup.pwn(12) : error 029: invalid expression, assumed zero
C:\Users\Florian\Desktop\pickup.pwn(12) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Alles anzeigen