28.03.2008, 03:49
Read the first page.. There's a link to old topics from this..
Originally Posted by !damo!spiderman
You'd have to write all your own functions to do this basically... cus you need to make sure that the players only get cards which are still in the pack etc. You'll need an array of all the cards etc. There's actually a few tutorials for c++ etc which explain how this could be done on the internet.. you'd just need to get the idea of what needs to happen and convert it to pawn basically
|
Originally Posted by MATT11504
im having trouble using GetPlayerWeapon.
pawn Code:
any examples of how GetPlayerWeapon is used? |
if (weaponid == 35)
Dim ByteVar As Byte
Originally Posted by Pixels^
Is there a way I can create a byte variable? In VB it's
Code:
Dim ByteVar As Byte It might be an easy thing to figure out but I can't for some reason. Searching pawn-lang.pdf atm. Wiki has no documentation on single byte variables. |
new MyString[20 char] = !"aavi: Hey listen!";
MyString{0} = 'N';
Originally Posted by Pixels^
CallRemoteFunction
|
for(new i = 0; i <= MAX_PLAYERS; (i != playerid) ? i++ : i += 2)
{
print("Simon is a nubzorz."); // Not actually doing this, but w/e.
}
C:\PROGRA~1\ROCKST~1\GTASAN~1\Samp\GAMEMO~1\para.pwn(263) : error 022: must be lvalue (non-constant) C:\PROGRA~1\ROCKST~1\GTASAN~1\Samp\GAMEMO~1\para.pwn(263) : warning 215: expression has no effect C:\PROGRA~1\ROCKST~1\GTASAN~1\Samp\GAMEMO~1\para.pwn(263) : error 001: expected token: ";", but found ")" C:\PROGRA~1\ROCKST~1\GTASAN~1\Samp\GAMEMO~1\para.pwn(263) : error 029: invalid expression, assumed zero C:\PROGRA~1\ROCKST~1\GTASAN~1\Samp\GAMEMO~1\para.pwn(263) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
for( new i = 0; i < MAX_PLAYERS; (i==2) ? (i++):(i+=2)){}
for( new i = 0; i < MAX_PLAYERS; i=(i==2) ? (i++):(i+2))