[SOLVED]OnPlayerPickUpPickup - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED]OnPlayerPickUpPickup (
/showthread.php?tid=151965)
[SOLVED]OnPlayerPickUpPickup -
[NTX]MikeQ - 01.06.2010
i have problem i needed to add a pickup for a friend but his one doesnt work the first line worked but when i aded his it frows 3 errors
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == house) SendClientMessage(playerid,0xFFFAAA,"This house is owned by server owner [SAK]Karlis");
return 1;
}
{
if(pickupid == pablo) SendClientMessage(playerid,0xfad837AA,"Pablo's House");
return 1;
}
Re: OnPlayerPickUpPickup -
Jonni8 - 01.06.2010
Use this:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == house)
{
SendClientMessage(playerid,0xFFFAAA,"This house is owned by server owner [SAK]Karlis");
}
else if (pickupid == pablo)
{
SendClientMessage(playerid,0xfad837AA,"Pablo's House");
}
return 1;
}
Re: OnPlayerPickUpPickup -
Mike_Peterson - 01.06.2010
I believe that would work Thepro
Re: OnPlayerPickUpPickup -
[NTX]MikeQ - 01.06.2010
pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(34) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(35) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(36) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(37) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(38) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(39) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(40) : warning 202: number of arguments does not match definition
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(310) : error 055: start of function body without function header
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(311) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(312) : error 010: invalid function or declaration
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\nono.pwn(105) : warning 204: symbol is assigned a value that is never used: "pablo"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Re: OnPlayerPickUpPickup -
Mike_Peterson - 01.06.2010
Are that the errors from Thepro or from ur first?
Re: [SOLVED]OnPlayerPickUpPickup -
Mike_Peterson - 01.06.2010
Welldone, i see you've solved the puzzle
im that dude from Catch 'n release u send me a message on ******* incase u dont know :P
Re: [SOLVED]OnPlayerPickUpPickup -
[NTX]MikeQ - 02.06.2010
hey if i want to make one more pickup i need to type else is again?
Re: [SOLVED]OnPlayerPickUpPickup -
Simon - 02.06.2010
Did you try it? The computer won't kill you if it's wrong.