Hallo.
Ich wollte einen Pizzajob mit RandomCPs machen kriege aber 3 Warnings..
C:\Selfmade\gamemodes\tlrp.pwn(610) : warning 219: local variable "rand" shadows a variable at a preceding levelC:\Selfmade\gamemodes\tlrp.pwn(611) : warning 202: number of arguments does not match definitionC:\Selfmade\gamemodes\tlrp.pwn(615) : warning 203: symbol is never used: "rand"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase3 Warnings.
Alle 3 Warnings sind hier:
public SetPlayerRandomCheckpoints(playerid){ { new rand = random(sizeof(gRandomPlayerCP)); SetPlayerCheckpoint(playerid, gRandomPlayerCP[rand][0], gRandomPlayerCP[rand][1], gRandomPlayerCP[rand][2]); } return 1;}